var tug;
var ntlk;
var nzdg = 0;

function jiazaiwancheng()
{
	tug = $("ul#mmll>li").length;
	ntlk = tug*1260;
	$("ul#mmll").width(ntlk);
	//alert(tug);
};




function neifanul(i)
{
	//alert(nzdg);
	switch(i){
		case 1:
			var ntlsz;
			if(nzdg<=0){
				nzdg = tug-1
				ntlsz =0-(nzdg*1260);
			}
			else
			{
				ntlsz = 0-((nzdg-1)*1260);
				nzdg--;
			};
			$("ul#mmll").animate({"left":ntlsz},300);

		break;
		case 2:
			var ntlsy;
			if(nzdg>=(tug-1)){
				nzdg = 0 ;
				ntlsy = 0;
			}
			else
			{
				ntlsy = 0-((nzdg+1)*1260);
				nzdg++;
			};
			$("ul#mmll").animate({"left":ntlsy},300);

		break;
		};
};